<?php
$a = array("A","B",7,9,6,2);
$aaa = array(17,9,6,2);
$b = array("com"=>"aynak","person"=>"Ayjamal","ads"=>"SHZHCH");
//print_r($b);
//$c = array_merge($a,$b);
//print_r($c);
//$d = array_pop($a);
//$e = array_push($a,"a","b");
//print_r(array_sum($aaa));
//print_r(count($a));
//print_r(in_array("R",$a));

//if(in_array("R",$a)){
//    echo "bar";
//}else{
//    echo "yok";
//}

//$f = range(1,100);
//$f = range("A","Z");
//$f = range(3,100,3);
//print_r($f);

//if(rsort($b)){
//    print_r($b);
//}else{
//    echo "sort 失败！";
//}

//print_r(array_search("aynak",$b))

//print_r(array_slice($a,2,2));

//print_r(array_key_exists("com",$b));

if(array_key_exists('aynak',$b)){
    echo $b['aynak'];
}else{
    echo "没有这样的键";
}